<template>
<div class='login'>
  
                                                                                     登录页面
   <input type="button" value="登录" @click="login" class="btn"></div>
</template>

<script>
export default {
data() {
return {

};

},
computed: {},
watch: {},
methods: {
login(){
  localStorage.setItem("userInfo",{username:"张三"});
  this.$router.push({
    path:"/"
  })
}
},
created() {

},
mounted() {

},
beforeCreate() {}, 
beforeMount() {}, 
beforeUpdate() {},
updated() {}, 
beforeDestroy() {}, 
destroyed() {},
activated() {}, 
}
</script>
<style lang='scss' scoped>
</style>